// 登录模块
import request from '@/api/axios'

// 登录
export function login(data) {
    return request({
        url: '/olda-play-auth/oauth/token',
        method: 'post',
        headers: {
            Authorization: 'Basic c2h1bnNodW4tZXhwcmVzcy13ZWI6c1pVZkBFSHdtN0g4alR3UjN6NTg5RURjQUx6ZDV0eHg='
        },
        params: data
    })
}

// 获取当前用户信息
export function getUserInfo() {
    return request({
        url: '/olda-shunshun-expressage-system-service/system/user/querySysUserDetail',
        method: 'get'
    })
}

// 获取当前用户的权限菜单
export function getPermissionRouters(data) {
    return request({
        url: '/olda-shunshun-expressage-system-service/system/menu/getUserRoleMenuList',
        method: 'post',
        data
    })
}
